s=1 
for i in range(1,6):
    s= s*i
    print(s)